[gd_scene load_steps=7 format=3 uid="uid://b8drgd2i1k2ca"]

[ext_resource type="Texture2D" uid="uid://cd3o1wfj1m6n0" path="res://assets/sprites/key/key.png" id="1_g3433"]
[ext_resource type="Script" path="res://scenes/key/key.gd" id="1_v3dx2"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_8gbg3"]
size = Vector2(12, 6)

[sub_resource type="Animation" id="Animation_k0pq7"]
resource_name = "Idle"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(0, 2), Vector2(0, -2), Vector2(0, 2)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CollisionShape2D:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(0.5, 1.5), Vector2(0.5, -2.5), Vector2(0.5, 1.5)]
}

[sub_resource type="Animation" id="Animation_s66uh"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CollisionShape2D:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0.5, 1.5)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 2)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_xtdms"]
_data = {
"Idle": SubResource("Animation_k0pq7"),
"RESET": SubResource("Animation_s66uh")
}

[node name="Key" type="Area2D"]
position = Vector2(0, -2)
collision_layer = 4
collision_mask = 2
script = ExtResource("1_v3dx2")
metadata/_edit_group_ = true

[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, 2)
texture = ExtResource("1_g3433")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 1.5)
shape = SubResource("RectangleShape2D_8gbg3")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_xtdms")
}

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
